package com.flycms.module.soft.dao;
import com.flycms.core.entity.PageVo;
import com.flycms.esmodule.model.EsSoft;
import com.flycms.module.soft.model.Soft;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SoftDao {
	int insert(Soft record);
	List<EsSoft> queryAll();
	int delete(Integer id);
	Soft queryByPk(@Param(value = "id")Integer id,@Param(value = "status")Integer status);
	int update(Soft record);
	List<Soft> queryByPage(@Param(value = "soft_name") String soft_name,
							 @Param(value = "category_id") Integer category_id,
							 @Param(value = "soft_platform")String soft_platform,
							 @Param(value = "status") Integer status,
							 @Param(value = "orderby") String orderby,
							 @Param(value = "order") String order,
							 @Param(value = "offset") Integer offset,
							 @Param(value = "rows") Integer rows);
	int countSoft(@Param(value = "soft_name") String softName,
				  @Param(value = "category_id") Integer categoryId,
				  @Param(value = "soft_platform")String softPlatform,
				  @Param(value = "status") Integer status);
	
	List<Soft> queryByIds(@Param("ids") List<Integer> ids);
}
 